/**
 * Created by Administrator on 2016/6/16.
 */
function getCities() {
    $.ajax({
        type: "GET",
        url: "getCities?pid=" + $('#province').val(),
        dataType: "json",
        success: function (data) {
            var citiesHtml = "<option value='0'>请选择</option>";
            for (var i = 0; i < data.length; i++) {
                citiesHtml += "<option value='" + data[i].name + "' >" + data[i].name + "</option>";
            }
            $('#city').empty().html(citiesHtml);
        }
    });
}

function submitForm() {
    var province = $('#province option:selected').text();
    $('#chantProvince').val(province);
    document.forms[0].submit();
}
